package com.tgc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/")
public class DemoController {
	
	private ModelAndView mav = null;
	
	@RequestMapping("/demo")
	public ModelAndView say(){
		mav = new ModelAndView("helloworld");
		mav.addObject("name", System.currentTimeMillis());
		return mav;
	}

}
